<?php
namespace User\Controller;
//我的订单
use Common\Controller\MemberbaseController;
use Common\ModelSQ\CommMSQ;

class OrderfinishController extends MemberbaseController {

    public function _initialize() {
        parent::_initialize();
    }

    public function index(){
        $msq = new CommMSQ();
        $list = $msq->getOrderFinish(cookie('user_name'),1,1);
        $this->assign('orderlist',$list);
        $this->display();
    }

    public function read(){
        $billStatus = empty(I('get.billStatus'))?'0':I('get.billStatus');
        $pageIndex = empty(I('get.pageIndex'))?'1':I('get.pageIndex');
        $msq = new CommMSQ();
        $list = $msq->getOrderFinish(cookie('user_name'), $billStatus, $pageIndex);
        $this->ajaxReturn($list);
    }

}


